package com.mlethe.android.demo.seattable.entity;

public class Res<T> {
    private int status;
    private String errorCode;
    private String errorMessage;
    private T data;

    public int getStatus() {
        return status;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public T getData() {
        return data;
    }

    public boolean isOk() {
        if (status == 1) {
            return true;
        } else {
            return false;
        }
    }
}
